package com.aidex.quartz.mapper;

import com.aidex.quartz.domain.SysJobLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
    @Update("truncate table sys_job_log")
    void clean();

    @Update("delete from sys_job_log where datediff(SYSDATE(),create_time) >= #{saveDay}")
    int deleteBySaveDay(@Param("saveDay") String saveDay);
}
